package com.ruoyi.market.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ruoyi.product.domain.ProductSkuVo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CouponDto {
    @JsonProperty("coupon_id")
    private Long couponId;
    private String couponName;
    private String code;
    private Integer type;
    @JsonProperty("vaule")
    private BigDecimal value;
    private BigDecimal minAmount;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date getTime;
    private Integer status;
    private String userOrderId;
    private String remark;
    private Integer couponStock;
    private List<ProductSkuVo> skus;
}
